package br.com.edumobi.dados.modelos;

import java.io.Serializable;

public abstract class ObjetoGeral implements Serializable {

    public Long id;

    public ObjetoGeral(Long id) {
        super();
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ObjetoGeral)) return false;

        ObjetoGeral that = (ObjetoGeral) o;

        if (!id.equals(that.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
